projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
508d66b
)
delete unused try macro from read2.rs
author
Nathan Froyd
<froydnj@gmail.com>
Thu, 5 Jan 2017 21:26:48 +0000
(16:26 -0500)
committer
Nathan Froyd
<froydnj@gmail.com>
Thu, 5 Jan 2017 21:26:48 +0000
(16:26 -0500)
src/cargo/util/read2.rs
patch
|
blob
|
history
diff --git
a/src/cargo/util/read2.rs
b/src/cargo/util/read2.rs
index 7eac02783f8c76f0465dab2f3286d5fb8c6a9221..7ca5d81c89936bafa56994d241a25ed3d6443c21 100644
(file)
--- a/
src/cargo/util/read2.rs
+++ b/
src/cargo/util/read2.rs
@@
-100,16
+100,6
@@
mod imp {
done: bool,
}
- macro_rules! try {
- ($e:expr) => (match $e {
- Ok(e) => e,
- Err(e) => {
- println!("{} failed with {}", stringify!($e), e);
- return Err(e)
- }
- })
- }
-
pub fn read2(out_pipe: ChildStdout,
err_pipe: ChildStderr,
mut data: &mut FnMut(bool, &mut Vec<u8>, bool)) -> io::Result<()> {